<?php

namespace co2\v0_0_0\Exception;

use co2\v0_0_0 as api;

class rethrow

{
	public function __construct
	(
		$exception
	)
	
	{
		if($exception instanceof api\Exception)
		throw new api\Exception($exception->getMessage(),$exception->getDebug(),$exception->getLevel(),$exception->getFile(),$exception->getLine());
		
		elseif($exception instanceof \Exception)
		throw new api\Exception($exception->getMessage(),null,0,$exception->getFile(),$exception->getLine());
	}
}
